<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>图片</title>
  <meta content="1" name="qrichtext"/>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2 id="images">图像，视频，音频</h2>

  <p class="h2subheading">— 将媒体文件插入书中 —</p>

  <p>You can insert any image, video, or audio file into your book clicking the Insert File button <img alt="" src="../Images/insert-image_22px.png"/> or selecting the menu item <span class="menuitem">Insert→File or its shortcut</span>. If the file has not already been added to your EPUB, you can select it from your computer.</p>
  <p>您可以点击“插入文件”按钮 <img alt="" src="../Images/insert-image_22px.png"/> 或选择菜单项 <span class="menuitem">插入→文件或其快捷方式</span>。如果文件尚未添加到 EPUB，则可以从计算机中选择它。</p>

  <div class="tip">
    <p class="tiptext">EPUB 2 and most e-ink readers only support images, but the ability to insert video and audio is available if needed. Both video and audio are natively supported in EPUB&#160;3</p>
    <p class="tiptext">EPUB 2 和大多数电子墨水阅读器仅支持图像，但是如果需要，可以插入视频和音频。EPUB 3 原生支持视频和音频</p>
  </div>

  <p>When you insert a media file into your book, it is first added to the EPUB and then a link to it is created. This allows you to add a file once and then link to it many times, or to add lots of files at one time and then later create links to them.</p>
  <p>将媒体文件插入书中时，首先将其添加到 EPUB 中，然后创建指向该文件的链接。这使您可以一次添加一个文件，然后多次链接到该文件，或者一次添加许多文件，然后再创建指向它们的链接。</p>

  <h3 class="sigil_not_in_toc">将媒体文件添加到您的 EPUB</h3>

  <p>You can add image, video, or audio files to your book in several ways:</p>
  <p>您可以通过几种方式将图像，视频或音频文件添加到您的书中：</p>

  <ul>
    <li>Click the Add Existing Files button <img alt="" src="../Images/document-add_22px.png"/>.</li>
    <li>单击添加现有文件按钮 <img alt="" src="../Images/document-add_22px.png"/>。</li>

    <li>Select the menu item <span class="menuitem">File→Add→Existing Files</span>.</li>
    <li>选择菜单项 <span class="menuitem">文件→添加→现有文件</span>。</li>

    <li>Right-click on a file in the Book Browser and select <span class="menuitem">Add Existing Files</span>.</li>
    <li>在“图书浏览器”中右键单击文件，然后选择 <span class="menuitem">添加现有文件</span>。</li>
  </ul>

  <div>
    All of these will display a standard file dialog allowing you to select one or more files from your computer. Select as many media files as you want. If any of the files already exists in the book, you will be prompted to confirm if you want to replace them.
  </div>
  <div>
    所有这些都将显示一个标准文件对话框，允许您从计算机中选择一个或多个文件。选择任意数量的媒体文件。如果书中已存在任何文件，则将提示您确认是否要替换它们。
  </div>

  <p>The files will be added to the appropriate folder in the Book Browser based on their file extension. However, they are not yet actually used anywhere in your book – they are just available to use. To use them, you need to link to or insert them in your book.</p>
  <p>这些文件将根据其文件扩展名添加到“书籍浏览器”中的相应文件夹中。但是，它们尚未真正在您的书中的任何位置使用–它们仅可供使用。要使用它们，您需要链接到书中或将其插入书中。</p>

  <p>You can actually add files to your book and insert them in one step:</p>
  <p>您实际上可以将文件添加到您的书中，然后一步插入它们：</p>

  <ul>
    <li><span class="menuitem">Click the Insert File button</span> <img alt="" src="../Images/insert-image_22px.png"/> and then click on <span class="buttonbox">Other Files</span>.</li>
    <li><span class="menuitem">单击“插入文件”按钮 </span><img al="" src="../Images/insert-image_22px.png"/>，然后单击 <span class="buttonbox">其他文件</span>。</li>

    <li>Select the menu item <span class="menuitem">Insert→File</span> and then click on <span class="buttonbox">Other Files</span>.</li>
    <li>选择菜单项 <span class="menuitem">插入→文件</span>，然后单击 <span class="buttonbox">其他文件</span>。</li>
  </ul>

  <h3 class="sigil_not_in_toc" id="inserting_images">将文件插入书中</h3>

  <p>To insert an image, video, or audio file into your book click on the location in your file where you want the image to be located in Code View. Then click the Insert File button <img alt="" src="../Images/insert-image_22px.png"/>:</p>
  <p>要将图像，视频或音频文件插入您的书中，请在文件视图中单击您希望图像在“代码视图”中位于的位置。然后单击“插入文件”按钮 <img alt="" src="../Images/insert-image_22px.png"/>：</p>

  <div class="image">
    <img alt="insert-file-main" src="../Images/insert-file-main.png"/>
  </div>

  <p>A list of the files in your book is displayed. Select one or more files to insert and click <span class="buttonbox">OK</span>, or double-click on the file you want in order to select and insert it automatically.</p>
  <p>将显示书籍中的文件列表。选择一个或多个要插入的文件，然后单击 <span class="buttonbox">确定</span>，或双击所需的文件以选择并自动插入。</p>

  <div class="tip">
    <p class="tiptext">You can choose files from your computer instead of from the EPUB by clicking on the <span class="buttonbox">Other Files</span> button. Files will be added to your book and then inserted automatically.</p>
    <p class="tiptext">您可以通过点击 <span class="buttonbox">其他文件</span> 按钮从计算机而不是 EPUB 中选择文件。文件将被添加到您的书中，然后自动插入。</p>
  </div>

  <p>You can filter which files are shown by selecting the type of file on the left, or entering part of the filename in the Filter text box.</p>
  <p>您可以通过选择左侧的文件类型或在“过滤器”文本框中输入文件名的一部分来过滤显示的文件。</p>

  <p>You can enable thumbnails for images in the Insert File dialog by clicking on the zoom buttons <img alt="" src="../Images/thumbnail%2B-.png"/> on the lower left to choose the size of the thumbnails. The dialog is slower with thumbnails so you can remove them by making them smaller until they are gone.</p>
  <p>您可以通过单击左下角的缩放按钮 <img alt="" src="../Images/thumbnail%2B-.png"/> 来为“插入文件”对话框中的图像启用缩略图，以选择缩略图的大小。带有缩略图的对话框比较慢，因此您可以通过缩小缩略图直到消失不见来删除它们。</p>

  <div class="image">
    <img alt="insert-file-thumbnails" src="../Images/insert-file-thumbnails.png"/>
  </div>

  <h3 class="sigil_not_in_toc">查看文件详细信息</h3>

  <p>To view details for an image, video or audio file double-click on its filename in the Book Browser.</p>
  <p>要查看图像，视频或音频文件的详细信息，请在“书籍浏览器”中双击其文件名。</p>

  <p>For an image, the Width and Height in pixels, size of the file in kilobytes, and whether or not the image has any color defined are shown:</p>
  <p>对于图像，显示以像素为单位的宽度和高度，以千字节为单位的文件大小，以及图像是否定义了任何颜色：</p>

  <div class="image">
    <img alt="" src="../Images/image_tab_example.png"/>
  </div>

  <h3 class="sigil_not_in_toc">编辑媒体文件</h3>

  <p>Sigil allows you to easily edit an image, video, or audio file once it is in your EPUB.</p>
  <p>使用 Sigil，您可以轻松将图像，视频或音频文件放入 EPUB 中。</p>

  <p>Simply right-click on its filename in the Book Browser, and select the menu item <span class="menuitem">Open With</span>. This will open the file in the external editor of your choice.</p>
  <p>只需在“图书浏览器”中右键单击其文件名，然后选择菜单项 <span class="menuitem">打开方式</span>。这将在您选择的外部编辑器中打开文件。</p>

  <p>See the <a href="../Text/external_editors.html">External Editors</a> chapter for details.</p>
  <p>有关详细信息，请参见 <a href="../Text/external_editors.html">外部编辑器</a> 一章。</p>

  <h3 class="sigil_not_in_toc">删除未使用的媒体文件</h3>

  <p>You can select the menu item <span class="menuitem">Tools→Delete Unused Media Files</span> to automatically delete any unused image, video, or audio files. Sigil will present you a list of files that do not have any links to them from your HTML or CSS files and then allow you to confirm which files to delete – or to cancel deleting them.</p>
  <p>您可以选择菜单项 <span class="menuitem">工具→删除未使用的媒体文件</span>，以自动删除任何未使用的图像，视频或音频文件。Sigil 将向您显示一个文件列表，这些文件没有 HTML 或 CSS 文件中的任何链接，然后允许您确认要删除的文件或取消删除它们。</p>

  <div class="image">
    <img alt="image-delete-unused" src="../Images/image-delete-unused.png"/>
  </div>

  <p>For more control over deleting individual files, you can use a report to view the number of times a file is used and then delete the ones you want – see the <a href="../Text/reports.html">Reports</a> chapter.</p>
  <p>要对删除单个文件进行更多控制，可以使用报告查看文件使用次数，然后删除所需的文件——请参见 <a href="../Text/reports.html">报告</a> 章。</p>

  <div class="tip">
    <p class="tiptext">You can double-click on a file to show that file in a tab.</p>
    <p class="tiptext">您可以双击文件以在选项卡中显示该文件。</p>
  </div>

  <h3 class="sigil_not_in_toc" id="cover_images">Cover Images</h3>

  <p>You can quickly add a cover image using <a href="../Text/add_cover.html">Add Cover</a>.</p>
  <p>您可以使用 <a href="../Text/add_cover.html">添加封面</a> 快速添加封面图像。</p>

  <p>But if you want to add a cover manually, then be aware that images for covers are special in that you must tell the EPUB which image should be used for the cover. Different ereaders use different methods to identify the cover, so you should use both methods:</p>
  <p>但是，如果要手动添加封面，请注意封面的图像是特殊的，因为您必须告诉 EPUB 应该使用哪个图像作为封面。不同的电子阅读器使用不同的方法来识别封面，因此您应该同时使用两种方法：</p>

  <ul>
    <li>Create a <span class="example">cover.html</span> file at the start of your book and then insert your image into it.</li>
    <li>在书的开头创建一个 <span class="example">cover.html</span> 文件，然后将图像插入其中。</li>

    <li>Mark the <span class="example">cover.html</span> file as a cover file by right-clicking on it in the Book Browser Text folder, selecting <span class="menuitem">Add Semantics</span> and choosing <span class="menuitem">Cover</span>.</li>
    <li>通过在“图书浏览器文本”文件夹中右键单击 <span class="example">cover.html</span> 文件，将其标记为封面文件，然后选择 <span class="menuitem">添加语义</span> 并选择 <span class="menuitem">封面</span>。</li>

    <li>Mark your actual cover image file as a Cover by right-clicking on its file in the Book Browser Images folder, selecting <span class="menuitem">Add Semantics</span> and choosing <span class="menuitem">Cover</span>.</li>
    <li>右键单击“书籍浏览器图像”文件夹中的文件，将其标记为封面，选择 <span class="menuitem">添加语义</span>，然后选择 <span class="menuitem">封面</span>。</li>
  </ul>

  <div class="tip">
    <p class="tiptext">Please make sure you have permission to use any images in your book as most images are copyrighted and their use may require a license.</p>
    <p class="tiptext">请确保您有权使用书中的任何图像，因为大多数图像均受版权保护，使用它们可能需要许可证。</p>
  </div>
</body>
</html>